<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <script type="text/javascript" src="${ctx}/appjs/account/withdrawManagerDetail.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
    <style>
        .fixed-table-toolbar {
            top: 0;
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>财务管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>提成明细</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
    var FinanceManage_tenantOperator_update = false;
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class=" row">

                    <shiro:hasPermission name="FinanceManage_tenantOperator_reload">


                        <label  class=" col-form-label"style="font-size: 14px;line-height: 30px;">客户</label>
                            <input id="nickName" name="nickName" type="text"
                                   class="form-control input-distance" value="${memberId}"
                                   placeholder="请输入客户ID/名称">
                        <label  class=" col-form-label"style="font-size: 14px;line-height: 30px;padding-left: 30px;">状态</label>
                            <select type="text" class="form-control shortInput input-distance" name="status"
                                    id="status">
                                <option value="">请选择</option>
                                <option value="0">待审核</option>
                                <option value="2">审核通过</option>
                                <option value="1">未通过</option>
                            </select>


                        <label class=" col-form-label"style="font-size: 14px;line-height: 30px;padding-left: 30px;">可提现时间</label>
                            <div class="pull-left search ol-md-1">
                                <input id="beginTime" name="beginTime" type="text"
                                       class="form-control layer-date input-distance shortInput" autocomplete="false"
                                       placeholder="开始时间">
                            </div>
                        <label class=" col-form-label"style="font-size: 14px;line-height: 30px;padding-left: 10px;">---</label>
                            <div class="pull-left search ol-md-1 ">
                                <input id="endTime" name="endTime" type="text"
                                       class="form-control layer-date input-distance shortInput" autocomplete="false"
                                       placeholder="结束时间">
                            </div>


                </div>


                <div class="form-group row">
                    <label class=" col-form-label" >是否已提现</label>
                            <select type="text" class="form-control shortInput input-distance" name="withDrawStatus"
                                    id="withDrawStatus">
                                <option value="">请选择</option>
                                <option value="2">是</option>
                                <option value="1">否</option>
                            </select>

                            <button class="btn btn-success marginright-auto input-distance"
                                    onclick="withdrawManagerDetail.reLoad()">查询
                            </button>
                            <shiro:hasPermission name="StationManager_station_reload">
                                <button class="btn btn-success input-distance" onclick="withdrawManagerDetail.reset()">
                                    重置
                                </button>
                            </shiro:hasPermission>
                    <button class="btn btn-success input-distance exportBtn" onclick="withdrawManagerDetail.exportList()">导出</button>
                </div>

                    </shiro:hasPermission>

                    <%--                    <shiro:hasPermission name="FinanceManage_tenantOperator_export">--%>
                    <%--                        <button type="button" class="btn btn-success marginright-auto input-distance"--%>
                    <%--                                onclick="acctTenantOperator.exportAcctTenantOperator()">--%>
                    <%--                            导出--%>
                    <%--                        </button>--%>
                    <%--                    </shiro:hasPermission>--%>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
<shiro:hasPermission name="FinanceManage_tenantOperator_update">
    <script>
        FinanceManage_tenantOperator_update = true;
    </script>
</shiro:hasPermission>
<script type="text/javascript">
    withdrawManagerDetail.init();


    layui.use('laydate', function () {
        var laydate = layui.laydate;

        //执行一个laydate实例
        var beginTime = laydate.render({
            elem: '#beginTime', //指定元素
            type: 'datetime',
            format: 'yyyy-MM-dd',
            trigger: 'click',
            position: 'fixed',
            change: function (value, date) {

                console.log(date)
                startDate.config.max = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date
                }
            }
        });
        var endTime = laydate.render({
            elem: '#endTime',
            type: 'datetime',
            format: 'yyyy-MM-dd',
            trigger: 'click',
            position: 'fixed',
            change: function (value, date) {
                endDate.config.min = {
                    year: date.year,
                    month: date.month - 1, //关键
                    date: date.date
                };
            }
        });

    })
</script>
</body>
</html>
